package com.secfound.soccer.server.tools;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.secfound.soccer.shared.db.Game;

/**
 * Formats a date
 * @author alfonso.ayala
 *
 */
public class DateFormatter {
	public static String getCurrentTime(){
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		return sdf.format( new Date() );
	}
	public static Date getDateCurrentTime(){
		return  new Date();
	}
	public static String getScore(Game g){
		return g.getaTeam()+":" + g.getaScore()+" - "+g.getbScore()+" :"+ g.getbTeam();
	}
}
